package edu.guet.server.mapper;

import edu.guet.server.model.UHomework;
import edu.guet.server.model.vo.StuHmkVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UHomeorkMapper {
    @Select("SELECT * from unit_homework where unit_id=#{oldUnitId}")
    public List<UHomework> findhmk(Integer oldUnitId) ;

    boolean insertUnitHmk(UHomework unitHomework);

    UHomework getHmkByid(Integer hmkId);

    boolean updateHmk(UHomework uHomework);

    boolean deleteHmk(Integer hmkId);

    List<StuHmkVO> getlistByhmkid(Integer hmkId);

    List<UHomework> getHmklistbySem(Integer semesterId);

    boolean updateGrade(StuHmkVO uHomework);
}
